from blinker import Signal, signal
from ordered_set import OrderedSet

Signal.set_class = OrderedSet

# 任务信号
class TaskEvent:
    start_signal = signal("task_start")
    finish_signal = signal("task_finish")
    finally_signal = signal("task_finally")

    # step
    step_start_signal = signal("step_start")
    step_finish_signal = signal("step_finish")

    # log
    executor_log_signal = signal("executor_log")


# 连接信号
from . import task_base as _task